const Controller = require("egg").Controller;

class AlarmHistoryController extends Controller {

  //列表
  async index() {

    const { ctx, service } = this

    const { page=1, pageSize=10 } = ctx.query

    const payload = {
      page,
      pageSize
    }

    const result = await service.alarmHistoryService.index(payload)

    ctx.helper.success({ ctx, res: result })
  }

}

module.exports = AlarmHistoryController;
